﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ReviewClassEval.aspx.cs" Inherits="Moral_Teacher_RuleSettings_ReviewClassEval" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>预览德育评价</title>
       <link href="../../Common/css/main.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .noneClick {
            cursor: default;
        }
    </style>

    <script type="text/javascript" src="../../Common/js/jquery.js"></script>
   <script type="text/javascript" src="../../Common/js/TableForExport.js"></script>
   <script type="text/javascript" src="../../../Common/js/jsUtil.js"></script>
    <script type="text/javascript" src="../../Common/js/common.js"></script>
    
    <script type="text/javascript">
    
   //选中行高亮
function SetHightLight(obj)
{
    if(obj != null) 
        obj.style.backgroundColor = "#fffccf";
        
    var table = document.getElementById('table');
    for(var i =0 ; i < table.rows.length;i++)
    {
        var row = table.rows[i];
        if(row != null && row.rowIndex != obj.rowIndex)
        {
            row.style.backgroundColor = "#ffffff";
        }
    }
} 

function getExcel()
{
    var cells = GetTableInfo(document.getElementById("tblHead"));
    if(cells!=null)
    {
        PageMethods.GetExcel(cells,function(result){
        document.getElementById('downloadf').src = "";
        document.getElementById('downloadf').src = "../../../PostFileBytes.aspx";
//            window.location.href = "../../../PostFileBytes.aspx";
        },function(err){alert(err._message);});
    }
}
    </script>
    
</head>
<body>
   <div style="overflow-y: auto; overflow-x: none; height: 98%;">
        <form id="form1" runat="server">
            <div class="mainWarp">
                <div class="pageBody" style="height: 96%;">
                    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
                    </asp:ScriptManager>
                    <h3><label><%=Common.ConvertYearAndTerm(SchoolCommon.Sch_SchoolInfo.SchoolYear,SchoolCommon.Sch_SchoolInfo.SchoolTerm)%>日常德育评分规则一览表</label></h3>
                    <div style=" float:left;height: 100%;">
                        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                            <ContentTemplate>
                                <%--<asp:Repeater ID="Repeater1" runat="server">
                                    <HeaderTemplate>--%>
                                   
                                    <div style="overflow-y: auto; overflow-x: none; height: 90%;">
                                      <asp:Table ID="tblHead" runat="server" CssClass="useList" CellPadding="0" CellSpacing="0"
                                        Style="border-spacing: 0px;">
                                        </asp:Table>
                                        <asp:Table ID="tblBody" runat="server" CssClass="useList" CellPadding="0" CellSpacing="0"
                                            Style="border-spacing: 0px; padding-top: -2px; margin-top: -2px; border-top: 0px;">
                                        </asp:Table>
                                     </div>
                                        </table></div>
                                    <%--</FooterTemplate>
                                </asp:Repeater>--%>
                                 
                            </ContentTemplate>
                            <Triggers>
                                <asp:AsyncPostBackTrigger ControlID="btnBind" EventName="Click" />
                            </Triggers>
                        </asp:UpdatePanel>
                        <%--服务器端控件层--%>
                        <div style="display: none;">
                            <asp:Button runat="server" ID="btnBind"   />
                            
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
    
  <div id="upInputPop" class="layoutWarp" style="display: none">
        <iframe src="" name="downloadf" id="downloadf" style="height: 80%;width: 95%;overflow-y:auto;overflow-x:none;" frameborder="0"   ></iframe>
    </div>    
</body>
</html>

<script language="javascript">
if(request("download")==="1")
{
getExcel();
}
</script>
